|
DX11 SET SPRITE UV
Sets the texture ("uv") coordinates of each corner of the given sprite.
This allows a sprite to only draw a smaller portion of its texture (or repeat it along the X/Y axis).
It can also be used for special effects in a custom sprite shader. Take note that sprites do only allow
a single set of texture coordinates though; if you need different coordinates for different textures in your
shader you can leave these ones at the default (0, 1) and provide factors to multiply these by to your shader
through the use of the sprite's constant buffer.
DX11 SET SPRITE UV sprite, topLeftU, topLeftV, topRightU, topRightV, bottomLeftU, bottomLeftV, bottomRightU, bottomRightV
sprite Dword The sprite to set the corner texture coordinates of.
topLeftU Float The U coordinate of the top-left corner of the sprite.
topLeftV Float The V coordinate of the top-left corner of the sprite.
topRightU Float The U coordinate of the top-right corner of the sprite.
topRightV Float The V coordinate of the top-right corner of the sprite.
bottomLeftU Float The U coordinate of the bottom-left corner of the sprite.
bottomLeftV Float The V coordinate of the bottom-left corner of the sprite.
bottomRightU Float The U coordinate of the bottom-right corner of the sprite.
bottomRightV Float The V coordinate of the bottom-right corner of the sprite.
This function does not return a value.
SPRITE Functions Menu
DX11 Function Categories
|